package campus.service;

import campus.mapper.AccountMapper;
import campus.model.Account;
import campus.model.AccountExample;
import campus.util.PageResult;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * @author VULCAN
 * @create 2020-05-08 0:14
 * @desc 账套接口
 **/
public interface AccountService {

    /**
      * @name  列表
     * @Author VULCAN
     * @Date 2020/5/8 20:28
     */
    List<Account> selectByExample(AccountExample example);

    /**
      * @name  账套新增
     * @Author VULCAN
     * @Date 2020/5/8 20:28
     */
    int insert(Account record);

    /**
      * @name  账套主键id删除
     * @Author VULCAN
     * @Date 2020/5/8 20:28
     */
    int deleteByPrimaryKey(Integer ztId);

    /**
      * @name  账套编辑
     * @Author VULCAN
     * @Date 2020/5/8 20:28
     */
    int updateByPrimaryKeySelective(Account record);

    /**
      * @name  账套分页
     * @Author VULCAN
     * @Date 2020/5/8 20:28
     */
    PageResult findByAllPageSize(Account account, int pageNum, int pageSize);

    /**
      * @name  主键id
     * @Author VULCAN
     * @Date 2020/5/8 20:36
     */
    Account findByPrimaryKey(Integer ztId);
}
